package com.eeds.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.eeds.common.table.WorkAttendanceEntity;
import com.eeds.model.work.req.ReqGetWorkAttendanceInfoVO;
import com.eeds.model.work.res.ResGetWorkAttendanceInfoVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.xml.crypto.Data;
import java.util.List;

/**
 * 考勤记录表
 * 
 * @author Flying
 * @email flying_miku@sina.com
 * @date 2019-09-28 20:48:58
 */
@Repository
public interface WorkAttendanceDao extends BaseMapper<WorkAttendanceEntity> {

    /**
     * 获取考勤记录信息
     * @param reqGetWorkAttendanceInfoVO
     * @return
     */
    ResGetWorkAttendanceInfoVO getWorkAttendanceInfo(@Param("reqGetWorkAttendanceInfoVO") ReqGetWorkAttendanceInfoVO reqGetWorkAttendanceInfoVO);

    /**
     * 获取考勤记录信息列表
     * @param startDate
     * @param endDate
     * @return
     */
    List<ResGetWorkAttendanceInfoVO> getWorkAttendanceInfoList(@Param("startDate") Data startDate, @Param("startDate")Data endDate);
}
